package com.mall.form;

import lombok.Data;

import javax.validation.constraints.*;

/**
 * @Author: 黄建
 * @Date: 2020/1/22 20:27
 */
@Data
public class UserRegisterForm {

    @Size(max = 16,min = 4,message = "长度在4至16之间")
    private String username;

    @Size(max = 16,min = 4,message = "长度在4至16之间")
    private String password;

    @Email(message = "邮箱格式不合法")
    @NotNull
    private String email;
}
